package cn.caplike.demo.shiro.eventbus;

import org.apache.shiro.event.EventBus;

/**
 * Description: 会议协调器.
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2021-06-04 14:15
 */
public class MeetupCoordinator {

    private EventBus eventBus;

    public void setEventBus(EventBus eventBus) {
        this.eventBus = eventBus;
    }

    /**
     * 产生一个事件
     */
    public void putFoodOnTable(String topic) {
        eventBus.publish(new PizzaAvailableEvent(topic));
        eventBus.publish(new BurgerAvailableEvent(topic));
    }

}
